From: Glenn Morris Date: Fri, 3 Aug 2007 03:21:49 +0000 (+0000) Subject: (customize-apropos): Make the error message indicate what kind of X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~17550 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=1fad91a4234f6824227d9d066f836408273617e7;p=emacs.git (customize-apropos): Make the error message indicate what kind of thing the user was trying to customize. --- diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 78b402c9c0a..2cfd247a645 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -1376,7 +1376,14 @@ that are not customizable options, as well as faces and groups (get symbol 'variable-documentation)))) (push (list symbol 'custom-variable) found))))) (if (not found) - (error "No customizable items matching %s" regexp) + (error "No %s matching %s" + (if (eq all t) + "items" + (format "customizable %s" + (if (memq all '(options faces groups)) + (symbol-name all) + "items"))) + regexp) (custom-buffer-create (custom-sort-items found t custom-buffer-order-groups) "*Customize Apropos*"))))